package zhh.check;

import zhh.person.Person;

public abstract class CheckHandler {

    protected CheckHandler nextHandler;

    public CheckHandler() {
    }

    public CheckHandler(CheckHandler nextHandler) {
        this.nextHandler = nextHandler;
    }

    public void setNextHandler(CheckHandler handler) {
        this.nextHandler = handler;
    }
    public abstract boolean check(Person person);
}
